package com.umpay.dto.merBusi.req.diff;

import org.hibernate.validator.constraints.NotEmpty;

import com.umpay.annotation.Pattern;
import com.umpay.verify.Verifiable;

public class WithdrawalAndRefundDiffBusiReq implements Verifiable{
	/**
	 * 通信流水
	 */
	@NotEmpty(message = "rpid不能为空")
	@Pattern(message="rpid格式不正确")
	public String rpid;
	
	@NotEmpty(message = "机构号不能为空")
	@Pattern(message="机构号格式不正确")
	private String instId;	//	变长8	机构号	Y	
	
	@NotEmpty(message = "机构交易流水不能为空")
	@Pattern(message="机构交易流水格式不正确")
	private String trace	;	//	机构交易流水	Y	
	
	@NotEmpty(message = "金额不能为空")
	@Pattern(message="金额格式不正确")
	private String amount;	//	变长13	金额	Y	单位：分[1-9]\\d{0,12}
	
	@NotEmpty(message = "差异处理类型不能为空")
	@Pattern(message="差异处理类型格式不正确")
	private String diffFlag;	//	变长2	差异处理类型	Y	1：pay无数据  2;pay超时

	public String getRpid() {
		return rpid;
	}

	public void setRpid(String rpid) {
		this.rpid = rpid;
	}

	public String getInstId() {
		return instId;
	}

	public void setInstId(String instId) {
		this.instId = instId;
	}

	public String getTrace() {
		return trace;
	}

	public void setTrace(String trace) {
		this.trace = trace;
	}

	public String getAmount() {
		return amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}

	public String getDiffFlag() {
		return diffFlag;
	}

	public void setDiffFlag(String diffFlag) {
		this.diffFlag = diffFlag;
	}

	@Override
	public String toString() {
		return "WithdrawalAndRefundDiffBusiReq [rpid=" + rpid + ", instId=" + instId + ", trace=" + trace + ", amount="
				+ amount + ", diffFlag=" + diffFlag + "]";
	}
	
}
